<?php
class Login_Model_Registred implements Login_Model_Mainable{
    
    private $core_controller_notnull;
    private $core_controller_tokencheck;
    private $login_model_passwordcheckout;
    private $excepted_result = 1;
    private $actual_result;
    private $login_data_registred;
    
    public function main(array $variables = null) {
       $this->core_controller_notnull = new Core_Controller_Notnull;
       $this->core_controller_notnull->main($variables['post']);
       $this->core_controller_tokencheck = new Core_Controller_Tokencheckout;
       $this->core_controller_tokencheck->main($variables);
       $this->login_model_passwordcheckout = new Login_Model_Passwordcheckout;
       $this->login_model_passwordcheckout->main($variables);
       $this->login_data_registred = new Login_Data_Registred;
       $this->actual_result = $this->login_data_registred->main($variables);
       if(
               $this->actual_result == $this->excepted_result
               ){
           
       }
       
       header("Location: ".SITE_ROOT."login.html");
       
    }

}
